﻿//// -----------------------------------------------------------------------------
//// 园丁,是个很简单的管理系统
////  gitee:https://gitee.com/hgflydream/Gardener 
////  issues:https://gitee.com/hgflydream/Gardener/issues 
//// -----------------------------------------------------------------------------

//using Furion.DatabaseAccessor;
//using Gardener.Core.SystemAsset.Dtos;
//using Microsoft.EntityFrameworkCore;
//using Microsoft.EntityFrameworkCore.Metadata.Builders;

//namespace Gardener.Core.Common.Entities
//{
//    /// <summary>
//    /// 功能信息
//    /// </summary>
//    public class Function : FunctionDto, IEntityBase<MasterDbContextLocator, GardenerMultiTenantDbContextLocator>, IEntityTypeBuilder<Function, MasterDbContextLocator, GardenerMultiTenantDbContextLocator>
//    {
//        /// <summary>
//        /// 多对多中间表
//        ///</summary>
//        public List<ResourceFunction> ResourceFunctions { get; set; } = new List<ResourceFunction>();
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="entityBuilder"></param>
//        /// <param name="dbContext"></param>
//        /// <param name="dbContextLocator"></param>
//        /// <exception cref="NotImplementedException"></exception>
//        public void Configure(EntityTypeBuilder<Function> entityBuilder, DbContext dbContext, Type dbContextLocator)
//        {
//            entityBuilder.HasIndex(x => x.Key).IsUnique();
//        }
//    }
//}
